package com.sy.springboottest.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 样例 pojo
 * 
 * @author xuejx 2015-9-24
 * 
 */
public class Demo implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private String address;
	private String sex;
	private String work = "工作工作工作工作工作工作工作工作工作";
	private Demo children;
	private List<Demo> childrens;

	private LocalDateTime createDate;

	public Demo() {
	}

	public Demo(String id, String name) {
		this.id = id;
		this.name = name;
		this.createDate = LocalDateTime.now();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 处理日期的方法
	 * 
	 * @return
	 */
	public LocalDateTime getCreateDate() {
		return createDate;
	}

	public void setCreateDate(LocalDateTime createDate) {
		this.createDate = createDate;
	}

	public Demo getChildren() {
		return children;
	}

	public void setChildren(Demo children) {
		this.children = children;
	}

	public List<Demo> getChildrens() {
		return childrens;
	}

	public void setChildrens(List<Demo> childrens) {
		this.childrens = childrens;
	}

}
